﻿using CC.MVC.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVC_Intro___Basic_Shapes.Models
{
    public class MultipleShapesViewModel
    {
        /// <summary>
        /// This is one of the shapes. Note that the first Square below is the type for the property,
        /// and the second is the name of the property.
        /// </summary>
        public Square Square { get; set; }

        /// <summary>
        /// The second shape that will be shown on our view.
        /// </summary>
        public Circle Circle { get; set; }

        public double GetCombinedArea()
        {
            return Circle.GetArea() + Square.GetArea();
        }
    }
}